package com.shouhe.mysap.util;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shouhe.mysap.common.MySapResult;

import java.util.Arrays;
import java.util.List;

/**
 * @author 守鹤
 * @date 2020/6/1 22:41
 */
public class DeleteUtil {

    public static<T> MySapResult deleteMany(String oper,Integer[] ids, IService<T> service){
        boolean b = service.removeByIds(Arrays.asList(ids));
        return PrintUtil.succOrErr(b,oper,ids.toString());
    }

}
